package com.kws.system.domain.payment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <b>TbDivisionRule</b>
 *
 * @description: TbDivisionRule <br>
 * @date: 2024/11/25 15:19 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class TbDivisionRule implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "规则名称")
    private String ruleName;

    @ApiModelProperty(value = "商户ID")
    private Long merchantId;

    @ApiModelProperty(value = "店铺ID")
    private Long shopId;

    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    @ApiModelProperty(value = "商户分账比例")
    private Integer shareRatioMerchant;

    @ApiModelProperty(value = "平台分账比例")
    private Integer shareRatioPlatform;

    @ApiModelProperty(value = "分账周期：单位天")
    private Integer distributionCycle;

    @ApiModelProperty(value = "最大分账金额")
    private BigDecimal shareAmountMax;

    @ApiModelProperty(value = "状态：0-待启用，1-已启用，2-已停止")
    private String status;

    @ApiModelProperty(value = "可用状态：0-不可用，1可用")
    private String enable;

    @ApiModelProperty(value = "创建用户")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改用户")
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getShareRatioMerchant() {
        return shareRatioMerchant;
    }

    public void setShareRatioMerchant(Integer shareRatioMerchant) {
        this.shareRatioMerchant = shareRatioMerchant;
    }

    public Integer getShareRatioPlatform() {
        return shareRatioPlatform;
    }

    public void setShareRatioPlatform(Integer shareRatioPlatform) {
        this.shareRatioPlatform = shareRatioPlatform;
    }

    public Integer getDistributionCycle() {
        return distributionCycle;
    }

    public void setDistributionCycle(Integer distributionCycle) {
        this.distributionCycle = distributionCycle;
    }

    public BigDecimal getShareAmountMax() {
        return shareAmountMax;
    }

    public void setShareAmountMax(BigDecimal shareAmountMax) {
        this.shareAmountMax = shareAmountMax;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ruleName").append(ruleName);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", shopId").append(shopId);
        sb.append(", deviceType=").append(deviceType);
        sb.append(", shareRatioMerchant").append(shareRatioMerchant);
        sb.append(", shareRatioPlatform=").append(shareRatioPlatform);
        sb.append(", distributionCycle").append(distributionCycle);
        sb.append(", shareAmountMax=").append(shareAmountMax);
        sb.append(", status").append(status);
        sb.append(", enable=").append(enable);
        sb.append(", createUser").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser").append(updateUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
